﻿using Abp.Domain.Entities;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace Batman.Cms.Domains
{
    public class ApplicationData : Entity<int>, ISoftDelete
    {
        /// <summary>
        /// 应用Id
        /// </summary>
        public int ApplicationId { get; set; }

        /// <summary>
        /// 父级应用数据编号
        /// </summary>
        public int? ParentId { get; set; }

        /// <summary>
        /// 应用数据描述
        /// </summary>
        public string Desc { get; set; }


        /// <summary>
        /// 软删除标志
        /// </summary>
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 子应用数据
        /// </summary>
        public List<ApplicationData> Children { get; set; }

        /// <summary>
        /// 父级应用数据
        /// </summary>
        public ApplicationData Parent { get; set; }

        /// <summary>
        /// 数据内容
        /// </summary>
        public List<ApplicationDataItem> ApplicationDataItems { get; set; }
    }
}
